package gui;

import javax.swing.JPanel;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class CabeceraAnonimo extends Cabecera {

	/**
	 * Create the panel.
	 */
	public CabeceraAnonimo() {
		
		JButton btnRegistrarse = new JButton("Registrarse");
		btnRegistrarse.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				VRegistro v = new VRegistro();
				v.setLocationRelativeTo(null);
				v.setModal(true);
				v.setResizable(false);
				v.setVisible(true);
				v.pack();
			}
		});
		add(btnRegistrarse);
		
		JButton btnIniciarSesin = new JButton("Iniciar Sesi\u00F3n");
		btnIniciarSesin.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				VInicioSesion v = new VInicioSesion();
				v.setLocationRelativeTo(null);
				v.setModal(true);
				v.setResizable(false);
				v.setVisible(true);
				v.pack();
			}
		});
		add(btnIniciarSesin);

	}

}
